package com.paul.sys.mapper;

import java.util.*;

/**
 * Created by yangjianbo on 2015/12/8.
 */
public class test {

    public static void main(String args[]) {
        List<Integer> list=new ArrayList<Integer>();
        list.add(5);
        list.add(1);
        list.add(10);
        list.add(8);
        Collections.sort(list,new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o1-o2;
            }
        });
        list.stream().forEach(e->{
            System.out.println(e);
        });

    }
}
